package com.droowa.domain;

import java.io.Serializable;
import java.sql.Date;

public class BoardPaper implements Serializable {
	int paperNum;
	int partitionId;
	String title;
	int notice;
	String writer;
	String pcId;
	String content;
	String fileAdd;
	String image;
	int refamily;
	int restep;
	int relevel;
	int secret;
	String password;
	Date writeDate;
	int cnt;
	String email;
	int answer;
	int del;
	Date dDate;
	String managerId;
	String boardId;
	
	public BoardPaper() {
		super();
	}

	/*
	 <!-- 자동으로 들어가는 값 -->
		<!-- 
			boardId, paperNum, title, writer, content, 
			refamily, restep, relevel,writeDate, cnt 
		 -->
	 */
	public BoardPaper(int partitionId, int notice, String pcId, String fileAdd,
			String image, int secret, String password, String email,
			int answer, int del, Date dDate, String managerId) {
		super();
		this.partitionId = partitionId;
		this.notice = notice;
		this.pcId = pcId;
		this.fileAdd = fileAdd;
		this.image = image;
		this.secret = secret;
		this.password = password;
		this.email = email;
		this.answer = answer;
		this.del = del;
		this.dDate = dDate;
		this.managerId = managerId;
	}
	
	public BoardPaper(int paperNum, int partitionId, String title, int notice,
			String writer, String pcId, String content, String fileAdd,
			String image, int refamily, int restep, int relevel, int secret,
			String password, Date writeDate, int cnt, String email, int answer,
			int del, Date dDate, String managerId, String boardId) {
		super();
		this.paperNum = paperNum;
		this.partitionId = partitionId;
		this.title = title;
		this.notice = notice;
		this.writer = writer;
		this.pcId = pcId;
		this.content = content;
		this.fileAdd = fileAdd;
		this.image = image;
		this.refamily = refamily;
		this.restep = restep;
		this.relevel = relevel;
		this.secret = secret;
		this.password = password;
		this.writeDate = writeDate;
		this.cnt = cnt;
		this.email = email;
		this.answer = answer;
		this.del = del;
		this.dDate = dDate;
		this.managerId = managerId;
		this.boardId = boardId;
	}

	public int getPaperNum() {
		return paperNum;
	}

	public void setPaperNum(int paperNum) {
		this.paperNum = paperNum;
	}

	public int getPartitionId() {
		return partitionId;
	}

	public void setPartitionId(int partitionId) {
		this.partitionId = partitionId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getNotice() {
		return notice;
	}

	public void setNotice(int notice) {
		this.notice = notice;
	}

	public String getWriter() {
		return writer;
	}

	public void setWriter(String writer) {
		this.writer = writer;
	}

	public String getPcId() {
		return pcId;
	}

	public void setPcId(String pcId) {
		this.pcId = pcId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getFileAdd() {
		return fileAdd;
	}

	public void setFileAdd(String fileAdd) {
		this.fileAdd = fileAdd;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public int getRefamily() {
		return refamily;
	}

	public void setRefamily(int refamily) {
		this.refamily = refamily;
	}

	public int getRestep() {
		return restep;
	}

	public void setRestep(int restep) {
		this.restep = restep;
	}

	public int getRelevel() {
		return relevel;
	}

	public void setRelevel(int relevel) {
		this.relevel = relevel;
	}

	public int getSecret() {
		return secret;
	}

	public void setSecret(int secret) {
		this.secret = secret;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getWriteDate() {
		return writeDate;
	}

	public void setWriteDate(Date writeDate) {
		this.writeDate = writeDate;
	}

	public int getCnt() {
		return cnt;
	}

	public void setCnt(int cnt) {
		this.cnt = cnt;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getAnswer() {
		return answer;
	}

	public void setAnswer(int answer) {
		this.answer = answer;
	}

	public int getDel() {
		return del;
	}

	public void setDel(int del) {
		this.del = del;
	}

	public Date getdDate() {
		return dDate;
	}

	public void setdDate(Date dDate) {
		this.dDate = dDate;
	}

	public String getManagerId() {
		return managerId;
	}

	public void setManagerId(String managerId) {
		this.managerId = managerId;
	}

	public String getBoardId() {
		return boardId;
	}

	public void setBoardId(String boardId) {
		this.boardId = boardId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + answer;
		result = prime * result + ((boardId == null) ? 0 : boardId.hashCode());
		result = prime * result + cnt;
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + ((dDate == null) ? 0 : dDate.hashCode());
		result = prime * result + del;
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result + ((fileAdd == null) ? 0 : fileAdd.hashCode());
		result = prime * result + ((image == null) ? 0 : image.hashCode());
		result = prime * result
				+ ((managerId == null) ? 0 : managerId.hashCode());
		result = prime * result + notice;
		result = prime * result + paperNum;
		result = prime * result + partitionId;
		result = prime * result
				+ ((password == null) ? 0 : password.hashCode());
		result = prime * result + ((pcId == null) ? 0 : pcId.hashCode());
		result = prime * result + refamily;
		result = prime * result + relevel;
		result = prime * result + restep;
		result = prime * result + secret;
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		result = prime * result
				+ ((writeDate == null) ? 0 : writeDate.hashCode());
		result = prime * result + ((writer == null) ? 0 : writer.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BoardPaper other = (BoardPaper) obj;
		if (answer != other.answer)
			return false;
		if (boardId == null) {
			if (other.boardId != null)
				return false;
		} else if (!boardId.equals(other.boardId))
			return false;
		if (cnt != other.cnt)
			return false;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (dDate == null) {
			if (other.dDate != null)
				return false;
		} else if (!dDate.equals(other.dDate))
			return false;
		if (del != other.del)
			return false;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (fileAdd == null) {
			if (other.fileAdd != null)
				return false;
		} else if (!fileAdd.equals(other.fileAdd))
			return false;
		if (image == null) {
			if (other.image != null)
				return false;
		} else if (!image.equals(other.image))
			return false;
		if (managerId == null) {
			if (other.managerId != null)
				return false;
		} else if (!managerId.equals(other.managerId))
			return false;
		if (notice != other.notice)
			return false;
		if (paperNum != other.paperNum)
			return false;
		if (partitionId != other.partitionId)
			return false;
		if (password == null) {
			if (other.password != null)
				return false;
		} else if (!password.equals(other.password))
			return false;
		if (pcId == null) {
			if (other.pcId != null)
				return false;
		} else if (!pcId.equals(other.pcId))
			return false;
		if (refamily != other.refamily)
			return false;
		if (relevel != other.relevel)
			return false;
		if (restep != other.restep)
			return false;
		if (secret != other.secret)
			return false;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals(other.title))
			return false;
		if (writeDate == null) {
			if (other.writeDate != null)
				return false;
		} else if (!writeDate.equals(other.writeDate))
			return false;
		if (writer == null) {
			if (other.writer != null)
				return false;
		} else if (!writer.equals(other.writer))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "BoardPaper [paperNum=" + paperNum + ", partitionId="
				+ partitionId + ", title=" + title + ", notice=" + notice
				+ ", writer=" + writer + ", pcId=" + pcId + ", content="
				+ content + ", fileAdd=" + fileAdd + ", image=" + image
				+ ", refamily=" + refamily + ", restep=" + restep
				+ ", relevel=" + relevel + ", secret=" + secret + ", password="
				+ password + ", writeDate=" + writeDate + ", cnt=" + cnt
				+ ", email=" + email + ", answer=" + answer + ", del=" + del
				+ ", dDate=" + dDate + ", managerId=" + managerId
				+ ", boardId=" + boardId + "]";
	}
}
